<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>異動紀錄</title>
    </head>
    <body>
        <div class="body">
            <h1>異動紀錄</h1>
            <g:if test="${flash.message}">
            	<div class="message">${flash.message}</div>
            </g:if>
            
            <table>
            	<tr>
            		<td>更新時間</td>
            		<td>更新人員</td>
            		<td>更新欄位</td>
            		<td>更新前</td>
            		<td>更新後</td>
            	</tr>
            <g:each var="history" in="${histories}">
            	<tr class="mouseOver">
            		<td><g:formatDate format="MM-dd HH:mm" date="${history.createdDate}" /></td>
            		<td><g:link action="show" id="${history.person.id}">${history.person.name}</g:link></td>
            		<td>${history.fieldName}</td>
            		<td>${history.beforeValue}</td>
            		<td>${history.afterValue}</td>
            	</tr>
            </g:each>
			</table>
        </div>
    </body>
</html>
